package com.turman.blibrary.log;

import java.text.SimpleDateFormat;
import java.util.Locale;

public class BLogItemBean {
    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:ss:mm", Locale.CHINA);
    public long timestamp;
    public int level;
    public String tag;
    public String log;

    public BLogItemBean(long timestamp, int level, String tag, String log) {
        this.timestamp = timestamp;
        this.level = level;
        this.tag = tag;
        this.log = log;
    }

    public String getFlattenedTag() {
        return sdf.format(timestamp) + " | " + level + " | "+ tag + " :";
    }
}
